package com.laot.search.controller;

import com.laot.search.service.feignServece.NoticeBoardProviderClient;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.laot.seacher_master.model.common.BaseResponse;
import org.laot.searchManage.vo.NoticeBoardVo;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 公告栏接口
 * @author laoT
 * @date 2024/1/28
 */
@RestController
@RequestMapping("/noticeBoard")
@Api(tags = "公告栏接口")
@Slf4j
public class NoticeBoardController {

    @Resource
    private NoticeBoardProviderClient noticeBoardProviderClient;


    @GetMapping("/getContentForFeign")
    @ApiOperation("查询公告栏内容")
    public BaseResponse<NoticeBoardVo> listAll(){
        BaseResponse<NoticeBoardVo> content = noticeBoardProviderClient.getContent();
        return content;
    }

}
